﻿using System.Collections.Generic;
using System.Linq;
using VideoSeller.Business.Data;
using VideoSeller.Business.Models;
using VideoSeller.Core.Configuration;

namespace VideoSeller.Web.Models
{
	public class RecommendedViewModel : BaseViewModel
	{
		public List<OnlineContent> Items { get; set; }

		public RecommendedViewModel()
		{
            //Vladimir comment next 2 lines
			//var paidModel = IoC.Resolve<PaidModel>();
			//Items = paidModel.GetRecommended().ToList();
            //
            //Vladimir insert next
            var contentModel = IoC.Resolve<OnlineContentModel>();
            Items = contentModel.GetTopViews(3, "O").ToList();
		}
	}
}